LEADTOOLS Medical (Leadtools.Dicom assembly)

GetValue<T>(DicomElement,Boolean,Int64,T) Method

Show in webframe







specifies the type of the value to return
an item in the data set
true to evaluate the Data Set as a tree; false to evaluate the Data Set as a list.
tag of the item to find.
a value of type T that is returned if the actual value cannot be retrieved.
Returns the value of a DICOM element
Syntax
public T GetValue<T>( 
   DicomElement element,
   bool tree,
   long tag,
   T defaultValue
)
'Declaration
 
Public Overloads Function GetValue(Of T)( _
   ByVal element As DicomElement, _
   ByVal tree As Boolean, _
   ByVal tag As Long, _
   ByVal defaultValue As T _
) As T
'Usage
 
Dim instance As DicomDataSet
Dim element As DicomElement
Dim tree As Boolean
Dim tag As Long
Dim defaultValue As T
Dim value As T
 
value = instance.GetValue(Of T)(element, tree, tag, defaultValue)
public T GetValue<T>( 
   DicomElement element,
   bool tree,
   long tag,
   T defaultValue
)

            

            
 function Leadtools.Dicom.DicomDataSet.GetValue``1(DicomElement,Boolean,Int64,``0)( 
   element ,
   tree ,
   tag ,
   defaultValue 
)
public:
T^ GetValuegeneric<typename T>
( 
   DicomElement^ element,
   bool tree,
   int64 tag,
   T^ defaultValue
) 

Parameters

element
an item in the data set
tree
true to evaluate the Data Set as a tree; false to evaluate the Data Set as a list.
tag
tag of the item to find.
defaultValue
a value of type T that is returned if the actual value cannot be retrieved.

Type Parameters

T
specifies the type of the value to return

Return Value

a value of type T that is the value of the DICOM element
Remarks
For information on this method, see GetValue.
Example
For an example, refer to DicomDataSet.GetValue{T}(DicomElement, T)
Requirements

Target Platforms

See Also

Reference

DicomDataSet Class
DicomDataSet Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.Dicom requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features